gdk_wayland_clipboard_discard_offer (GdkWaylandClipboard *cb)
{
g_clear_pointer (&cb->offer_formats, gdk_content_formats_unref);
- g_clear_pointer (&cb->offer, (GDestroyNotify) wl_data_offer_destroy);
+ g_clear_pointer (&cb->offer, wl_data_offer_destroy);
}
static void
gdk_wayland_clipboard_discard_source (GdkWaylandClipboard *cb)
{
- g_clear_pointer (&cb->source, (GDestroyNotify) wl_data_source_destroy);
+ g_clear_pointer (&cb->source, wl_data_source_destroy);
}
static void
gdk_content_formats_unref (ignore);
seat->pending_builder = NULL;
}
- g_clear_pointer (&seat->pending_offer, (GDestroyNotify) wl_data_offer_destroy);
+ g_clear_pointer (&seat->pending_offer, wl_data_offer_destroy);
seat->pending_source_actions = 0;
seat->pending_action = 0;
}
gdk_drag_set_cursor (drag, NULL);
- g_clear_pointer (&wayland_drag->data_source, (GDestroyNotify) wl_data_source_destroy);
- g_clear_pointer (&wayland_drag->offer, (GDestroyNotify) wl_data_offer_destroy);
+ g_clear_pointer (&wayland_drag->data_source, wl_data_source_destroy);
+ g_clear_pointer (&wayland_drag->offer, wl_data_offer_destroy);
dnd_surface = wayland_drag->dnd_surface;
{
GdkWaylandDrop *wayland_drop = GDK_WAYLAND_DROP (object);
- g_clear_pointer (&wayland_drop->offer, (GDestroyNotify) wl_data_offer_destroy);
+ g_clear_pointer (&wayland_drop->offer, wl_data_offer_destroy);
G_OBJECT_CLASS (gdk_wayland_drop_parent_class)->finalize (object);
}
gdk_content_formats_unref (ignore);
cb->pending_builder = NULL;
}
- g_clear_pointer (&cb->pending, (GDestroyNotify) gtk_primary_selection_offer_destroy);
+ g_clear_pointer (&cb->pending, gtk_primary_selection_offer_destroy);
}
static void
gdk_wayland_primary_discard_offer (GdkWaylandPrimary *cb)
{
g_clear_pointer (&cb->offer_formats, gdk_content_formats_unref);
- g_clear_pointer (&cb->offer, (GDestroyNotify) gtk_primary_selection_offer_destroy);
+ g_clear_pointer (&cb->offer, gtk_primary_selection_offer_destroy);
}
static void
gdk_wayland_primary_discard_source (GdkWaylandPrimary *cb)
{
- g_clear_pointer (&cb->source, (GDestroyNotify) wl_data_source_destroy);
+ g_clear_pointer (&cb->source, gtk_primary_selection_source_destroy);
}
static void
GtkDragContent *content = GTK_DRAG_CONTENT (object);
g_clear_object (&content->widget);
- g_clear_pointer (&content->formats, (GDestroyNotify) gdk_content_formats_unref);
+ g_clear_pointer (&content->formats, gdk_content_formats_unref);
G_OBJECT_CLASS (gtk_drag_content_parent_class)->finalize (object);
}
gtk_adjustment_set_value (hadjustment, position);
}
else if (data->hscrolling)
- g_clear_pointer (&data->hscrolling, (GDestroyNotify) gtk_kinetic_scrolling_free);
+ g_clear_pointer (&data->hscrolling, gtk_kinetic_scrolling_free);
if (data->vscrolling &&
gtk_kinetic_scrolling_tick (data->vscrolling, elapsed, &position))
gtk_adjustment_set_value (vadjustment, position);
}
else if (data->vscrolling)
- g_clear_pointer (&data->vscrolling, (GDestroyNotify) gtk_kinetic_scrolling_free);
+ g_clear_pointer (&data->vscrolling, gtk_kinetic_scrolling_free);
if (!data->hscrolling && !data->vscrolling)
{